﻿using MahApps.Metro.Controls;
using MahApps.Metro.Controls.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace ManagementClinic.App.Share
{
  public static class DialogService
    {
      public static async Task<MessageDialogResult> ShowMessage(
       string message, MessageDialogStyle dialogStyle)
      {
          var metroWindow = (Application.Current.MainWindow as MetroWindow);

          var mySettings = new MetroDialogSettings()
          {
              AffirmativeButtonText = "Hi",
              NegativeButtonText = "Go away!",
              FirstAuxiliaryButtonText = "Cancel",
              ColorScheme = MetroDialogColorScheme.Accented
              
          };
       
             metroWindow.MetroDialogOptions.ColorScheme = MetroDialogColorScheme.Accented;
             MessageDialogResult result = await metroWindow.ShowMessageAsync("Hello!", "Welcome to the world of metro! "
             );
          return result;
          //metroWindow.MetroDialogOptions.ColorScheme = MetroDialogColorScheme.Theme;
          //return await metroWindow.ShowMessageAsync(
          //    "MY TITLE", message, dialogStyle, metroWindow.MetroDialogOptions);
      }
    }
}
